package com.iflytek.cosmo.ocr.common.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName: FdfsProperties.java
 * @Description: Fdfs相关属性配置
 * @author liangxu5@iflytek.com
 * @create 2018年9月7日下午4:02:13
 * @version 1.0
 * 
 */
@Configuration
@ConfigurationProperties(prefix = "fdfs")
public class FdfsProperties {
	
	/**
	 * fdfs的trackerServer
	 */
	private String fdfsTrackerServer;

	/**
	 * fdfs的downloadUrl
	 */
	@Value("${fdfs.url}")
	private String fdfsDownloadUrl;

	/**
	 * fdfs的trackerServer
	 * @return fdfs的trackerServer
	 */
	public String getFdfsTrackerServer() {
		return fdfsTrackerServer;
	}

	/**
	 * fdfs的trackerServer
	 * @param fdfsTrackerServer fdfs的trackerServer
	 */
	public void setFdfsTrackerServer(String fdfsTrackerServer) {
		this.fdfsTrackerServer = fdfsTrackerServer;
	}

	/**
	 * fdfs的downloadUrl
	 * @return fdfs的downloadUrl
	 */
	public String getFdfsDownloadUrl() {
		return fdfsDownloadUrl;
	}

	/**
	 * fdfs的downloadUrl
	 * @param fdfsDownloadUrl fdfs的downloadUrl
	 */
	public void setFdfsDownloadUrl(String fdfsDownloadUrl) {
		this.fdfsDownloadUrl = fdfsDownloadUrl;
	}

}
